package com.moonshineproject
{
	import com.moonshineproject.plugin.project.vo.ProjectVO;
	import com.moonshineproject.view.IContentWindow;
	import com.moonshineproject.view.MainView;
	
	import mx.collections.ArrayCollection;
	
	public class IDEModel
	{
		private static var instance:IDEModel;
		public static function getInstance():IDEModel {
			
			if (!instance)
				instance = new IDEModel();
			
			return instance;
		}
		
		
		
		// Currently active editor
		[Bindable]
		public var activeEditor:IContentWindow;
		
		// Array of current editors
		public var editors:ArrayCollection = new ArrayCollection();

		public var mainView:MainView;
				
		public var activeProject:ProjectVO;
		
		public function removeEditor(editor:Object):void
		{
			editors.removeItemAt( editors.getItemIndex(editor) );
		}
		
		
		

	}
}